package com.baomidou.springwind.test.List;

import java.util.*;

/**
 * Created by Administrator on 2017-01-13.
 */
public class ListFeatures {
    Random random = new Random(47);
    private static List<String> pets = new ArrayList<String>();
//    private static Set<String> pets = new HashSet<String>();
    static {
        pets.add("yhx");
        pets.add("lll");
        pets.add("lll");
        pets.add("qqq");
        pets.add("ttt");
        pets.add("jjj");
    }

    public static void main(String[] args) {
        System.out.println(pets.toString());
        Iterator<String> iterator = pets.iterator();
        while (iterator.hasNext()) {
            System.out.println(iterator.next());
        }
    }

}
